//
//  DSAudioView.h
//  DSJY
//
//  Created by 冯华强 on 16/10/21.
//  Copyright © 2016年 dsjy. All rights reserved.
//  音乐的View

#import <UIKit/UIKit.h>
#import "XCYAudioTool.h"

@class DSAudioView, DSUnitListeningContent;
@protocol DSAudioViewDelegate <NSObject>

@optional
//音乐背景点击
- (void)audioViewDidBgViewClick:(DSAudioView *)audioView;

@end

@interface DSAudioView : UIView

//初始化
+ (__kindof DSAudioView *)audioView;

//播放音乐按钮
@property (nonatomic, weak, readonly) UIButton *audioBtn;

//delegate
@property (nonatomic, weak) id <DSAudioViewDelegate, AVAudioPlayerDelegate> delegate;

//模型
@property (nonatomic, strong) DSUnitListeningContent *listeningContent;

//停止－播放
- (void)stopToPlayMusic;

//播放
- (void)playMusic;

//停止
- (void)stopMusic;

@end
